import os

from prutils.pr_utils import rm_dir, rm_file

from config import config

rm_file(r"build/ydpic.{}.zip".format((config["version"])))
rm_dir("build/exe.win32-3.8")

os.system("python cx_setup.py build")
os.system(r"7z.exe a -tzip build/ydpic.{}.zip ./build/exe.win32-3.8/*".format(config["version"]))
